#pragma once

#include <QtWidgets/QMainWindow>
#include <QPixmap>
#include <QPainter>
#include <QKeyEvent>
#include <QMouseEvent>
#include "ui_AdbScreen.h"

class AdbScreen : public QMainWindow
{
	Q_OBJECT
private:
    bool bStart;
    float mScale;
    int mWakeTime;
	QPixmap mPixmap;
	QImage mImage; 
public:
	AdbScreen(QWidget *parent = Q_NULLPTR);
	virtual void paintEvent(QPaintEvent *event);


    virtual void resizeEvent(QResizeEvent *event);
	virtual void mousePressEvent(QMouseEvent *event);
	virtual void mouseReleaseEvent(QMouseEvent *event);
	virtual void mouseDoubleClickEvent(QMouseEvent *event);
	virtual void mouseMoveEvent(QMouseEvent *event);
	virtual void keyPressEvent(QKeyEvent *event);
	virtual void keyReleaseEvent(QKeyEvent *event);

	void command(QString action);
private slots:

    void on_action20_triggered();

    void on_action50_triggered();

    void on_action100_triggered();

    void on_actionHorizontal_triggered();

    void on_actionVertical_triggered();

    void on_actionStart_triggered();

    void on_action30_triggered();

private:
	Ui::AdbScreenClass ui;
};
